/************************************************************************
 * The code is owned by mainframer.cn and Shang Tao
 * Without aproval of mainframer.cn and Shang Tao, removing the copyright
 * infomation is regarded as invassion of proprietary copyright
 ***********************************************************************/
package com.mr.qa.bo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * SharedFile BO
 */

public class SharedFile extends BaseBO
{
    // Fields    
    private User mrIaskUser;
    private SharedFileCategory mrIaskSharedFileCategory;
    private String name;
    private String path;
    private Date postDate;
    
    //how many times the file is downloaded
    private Integer downloadCount;
    private Integer size;
    
    //2007.10.17 add
    private String description;
    
    private Integer viewCount;
    
    private Boolean isRecommended = false;

    private Date changeDate;
    
    private String fileType;
    
    private String state;
    
    private Set comments = new HashSet(0);    
    
    // Constructors

    /** default constructor */
    public SharedFile() {
    }

    // Property accessors


    public User getMrIaskUser() 
    {
        return this.mrIaskUser;
    }
    
    public void setMrIaskUser(User mrIaskUser) {
        this.mrIaskUser = mrIaskUser;
    }

    public SharedFileCategory getMrIaskSharedFileCategory() {
        return this.mrIaskSharedFileCategory;
    }
    
    public void setMrIaskSharedFileCategory(SharedFileCategory mrIaskSharedFileCategory) {
        this.mrIaskSharedFileCategory = mrIaskSharedFileCategory;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return this.path;
    }
    
    public void setPath(String path) {
        this.path = path;
    }

    public Date getPostDate() {
        return this.postDate;
    }
    
    public void setPostDate(Date postDate) {
        this.postDate = postDate;
    }

    public Integer getDownloadCount() {
        return this.downloadCount;
    }
    
    public void setDownloadCount(Integer downloadCount) {
        this.downloadCount = downloadCount;
    }

    public void setSize(Integer size)
    {
        this.size = size;
    }
    
    public Integer getSize()
    {
        return size;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }
    
    public String getDescription()
    {
        return description;
    }

public void setIsRecommended(Boolean isRecommended)
{
    this.isRecommended = isRecommended;
}

public Boolean getIsRecommended()
{
    return isRecommended;
}

public void setChangeDate(Date changeDate)
{
    this.changeDate = changeDate;
}

public Date getChangeDate()
{
    return changeDate;
}

public void setViewCount(Integer viewCount)
{
    this.viewCount = viewCount;
}

public Integer getViewCount()
{
    return viewCount;
}

public void setFileType(String fileType)
{
    this.fileType = fileType;
}

public String getFileType()
{
    return fileType;
}

public void setState(String state)
{
    this.state = state;
}

public String getState()
{
    return state;
}

public void setComments(Set comments)
{
    this.comments = comments;
}

public Set getComments()
{	
    return comments;
}
}
